<?php

namespace app\api\controller;

use app\client\api\C_news;

class News
{
    public $c_news;

    public function __construct()
    {
        $this->c_news = new C_news();
    }

    /**
     * 列表数据
     */
    public function listData()
    {
        $result = $this->c_news->listData();
        return jsonResponse($result);
    }

    /**
     * 信息
     */
    public function info()
    {
        $result = $this->c_news->info();
        return jsonResponse($result);
    }
}